<?php

require_once("system/startup.php");
require_once("config.php");
require_once(DIR_CONTROLLER .'news/ControllerNewsExample.php');


$data = array();

// init db
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD,DB_DATABASE);
Registry::set('db',$db);

// loader
$loader = new Loader();
Registry::set('loader',$loader);

// session
$session = new Session();
Registry::set('session', $session);

// init controller
$ctrExample = new ControllerNewsExample();
$output = $ctrExample->index();

$ctrExample->output($output);


?>